<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <link rel="icon" type="image/svg+xml" href="/src/favicon.svg" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scale=none" />
    <script src="https://unpkg.com/dexie@3.0.3/dist/dexie.js"></script>
    <title>记事本</title>
  </head>
  <body>
    <div id="root"></div>
    <script type="module" src="/src/main.jsx"></script>
    <script>
      // indexedDB
      (function() {
        var db = new Dexie('articles');
        db.version(1).stores(
          { 
            articles: '++id, date, title, content'
          });
        window.db = db;
      })()
    </script>
  </body>
</html>
